package view;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ViewControoler {
	
	/**
	 * 自定义视图 
	 * @return String
	 */
	@RequestMapping("/testMyExcelView")
	public String testMyExcelView() {
		System.out.println("通过IOC容器匹配BeanNameViewRelover拿视图解析器");
		return "myExcelView";
	}
	
	/**
	 * 自定义视图 
	 * @return String
	 */
	@RequestMapping("/testMyJsonView")
	public String testMyJsonView() {
		System.out.println("通过IOC容器匹配BeanNameViewRelover拿视图解析器");
		return "myJsonView";
	}
	
	
	/**
	 * 自定义视图 
	 * @return String
	 */
	@RequestMapping("/testMyView")
	public String testMyView() {
		System.out.println("通过IOC容器匹配BeanNameViewRelover拿视图解析器");
		return "myView";
	}
	
}
